package newsDao;

import java.util.List;
import page.*;
public interface NewsDAO {
	public int add(NewsEntity n);

	public int del(long nid);

	public int update(NewsEntity n);

	public NewsEntity find(long nid);

	public List<NewsEntity> findTop(long cid);

	public List<NewsEntity> paging(long cid, int pageNo);
	public Page<NewsEntity> query(int pageNo);
	public Page<NewsEntity> search(long cid,int pageNo);
	public List<NewsEntity> findAll();
	public Page<NewsEntity> find(int pageNo, Integer tid);
}
